package com.mohan.calligraphy.dto;

import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Getter
@Setter
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SystemUserRegistry {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Length(min = 0, max = 30, message = "用户名在0-30个长度之间")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Length(min = 0, max = 30, message = "密码在0-30个长度之间")
    private String password;

    private String uuid;

    private String code;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机号
     */
    private String mobile;


}
